package com.scf.contract.service.impl;

import com.scf.contract.entity.Appendix;
import com.scf.contract.mapper.FileMapper;
import com.scf.contract.service.FileService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author author
 * @create 2021-11-22-17:01
 */
@Service
public class FileServiceImpl implements FileService {
    @Resource
    FileMapper fileMapper;
    @Override
    public int upload(Appendix appendix) {
        return fileMapper.upload(appendix);
    }

    @Override
    public List<Appendix> allFile() {
        return fileMapper.allFile();
    }
}
